Integrand size = 22, antiderivative size = 288 \[ \int x \left (a+b \log \left (c \left (d+\frac {e}{\sqrt {x}}\right )^n\right )\right )^2 \, dx=-\frac {5 b^2 e^3 n^2 \sqrt {x}}{6 d^3}+\frac {b^2 e^2 n^2 x}{6 d^2}+\frac {5 b^2 e^4 n^2 \log \left (d+\frac {e}{\sqrt {x}}\right )}{6 d^4}+\frac {b e^3 n \left (d+\frac {e}{\sqrt {x}}\right ) \sqrt {x} \left (a+b \log \left (c \left (d+\frac {e}{\sqrt {x}}\right )^n\right )\right )}{d^4}-\frac {b e^2 n x \left (a+b \log \left (c \left (d+\frac {e}{\sqrt {x}}\right )^n\right )\right )}{2 d^2}+\frac {b e n x^{3/2} \left (a+b \log \left (c \left (d+\frac {e}{\sqrt {x}}\right )^n\right )\right )}{3 d}+\frac {b e^4 n \log \left (1-\frac {d}{d+\frac {e}{\sqrt {x}}}\right ) \left (a+b \log \left (c \left (d+\frac {e}{\sqrt {x}}\right )^n\right )\right )}{d^4}+\frac {1}{2} x^2 \left (a+b \log \left (c \left (d+\frac {e}{\sqrt {x}}\right )^n\right )\right )^2+\frac {11 b^2 e^4 n^2 \log (x)}{12 d^4}-\frac {b^2 e^4 n^2 \operatorname {PolyLog}\left (2,\frac {d}{d+\frac {e}{\sqrt {x}}}\right )}{d^4} \]
[Out]
Time = 0.38 (sec) , antiderivative size = 288, normalized size of antiderivative = 1.00, number of steps used = 16, number of rules used = 10, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.455, Rules used = {2504, 2445, 2458, 2389, 2379, 2438, 2351, 31, 2356, 46} \[ \int x \left (a+b \log \left (c \left (d+\frac {e}{\sqrt {x}}\right )^n\right )\right )^2 \, dx=\frac {b e^4 n \log \left (1-\frac {d}{d+\frac {e}{\sqrt {x}}}\right ) \left (a+b \log \left (c \left (d+\frac {e}{\sqrt {x}}\right )^n\right )\right )}{d^4}+\frac {b e^3 n \sqrt {x} \left (d+\frac {e}{\sqrt {x}}\right ) \left (a+b \log \left (c \left (d+\frac {e}{\sqrt {x}}\right )^n\right )\right )}{d^4}-\frac {b e^2 n x \left (a+b \log \left (c \left (d+\frac {e}{\sqrt {x}}\right )^n\right )\right )}{2 d^2}+\frac {b e n x^{3/2} \left (a+b \log \left (c \left (d+\frac {e}{\sqrt {x}}\right )^n\right )\right )}{3 d}+\frac {1}{2} x^2 \left (a+b \log \left (c \left (d+\frac {e}{\sqrt {x}}\right )^n\right )\right )^2-\frac {b^2 e^4 n^2 \operatorname {PolyLog}\left (2,\frac {d}{d+\frac {e}{\sqrt {x}}}\right )}{d^4}+\frac {5 b^2 e^4 n^2 \log \left (d+\frac {e}{\sqrt {x}}\right )}{6 d^4}+\frac {11 b^2 e^4 n^2 \log (x)}{12 d^4}-\frac {5 b^2 e^3 n^2 \sqrt {x}}{6 d^3}+\frac {b^2 e^2 n^2 x}{6 d^2} \]
[In]
[Out]
Rule 31
Rule 46
Rule 2351
Rule 2356
Rule 2379
Rule 2389
Rule 2438
Rule 2445
Rule 2458
Rule 2504
Rubi steps \begin{align*} \text {integral}& = -\left (2 \text {Subst}\left (\int \frac {\left (a+b \log \left (c (d+e x)^n\right )\right )^2}{x^5} \, dx,x,\frac {1}{\sqrt {x}}\right )\right ) \\ & = \frac {1}{2} x^2 \left (a+b \log \left (c \left (d+\frac {e}{\sqrt {x}}\right )^n\right )\right )^2-(b e n) \text {Subst}\left (\int \frac {a+b \log \left (c (d+e x)^n\right )}{x^4 (d+e x)} \, dx,x,\frac {1}{\sqrt {x}}\right ) \\ & = \frac {1}{2} x^2 \left (a+b \log \left (c \left (d+\frac {e}{\sqrt {x}}\right )^n\right )\right )^2-(b n) \text {Subst}\left (\int \frac {a+b \log \left (c x^n\right )}{x \left (-\frac {d}{e}+\frac {x}{e}\right )^4} \, dx,x,d+\frac {e}{\sqrt {x}}\right ) \\ & = \frac {1}{2} x^2 \left (a+b \log \left (c \left (d+\frac {e}{\sqrt {x}}\right )^n\right )\right )^2-\frac {(b n) \text {Subst}\left (\int \frac {a+b \log \left (c x^n\right )}{\left (-\frac {d}{e}+\frac {x}{e}\right )^4} \, dx,x,d+\frac {e}{\sqrt {x}}\right )}{d}+\frac {(b e n) \text {Subst}\left (\int \frac {a+b \log \left (c x^n\right )}{x \left (-\frac {d}{e}+\frac {x}{e}\right )^3} \, dx,x,d+\frac {e}{\sqrt {x}}\right )}{d} \\ & = \frac {b e n x^{3/2} \left (a+b \log \left (c \left (d+\frac {e}{\sqrt {x}}\right )^n\right )\right )}{3 d}+\frac {1}{2} x^2 \left (a+b \log \left (c \left (d+\frac {e}{\sqrt {x}}\right )^n\right )\right )^2+\frac {(b e n) \text {Subst}\left (\int \frac {a+b \log \left (c x^n\right )}{\left (-\frac {d}{e}+\frac {x}{e}\right )^3} \, dx,x,d+\frac {e}{\sqrt {x}}\right )}{d^2}-\frac {\left (b e^2 n\right ) \text {Subst}\left (\int \frac {a+b \log \left (c x^n\right )}{x \left (-\frac {d}{e}+\frac {x}{e}\right )^2} \, dx,x,d+\frac {e}{\sqrt {x}}\right )}{d^2}-\frac {\left (b^2 e n^2\right ) \text {Subst}\left (\int \frac {1}{x \left (-\frac {d}{e}+\frac {x}{e}\right )^3} \, dx,x,d+\frac {e}{\sqrt {x}}\right )}{3 d} \\ & = -\frac {b e^2 n x \left (a+b \log \left (c \left (d+\frac {e}{\sqrt {x}}\right )^n\right )\right )}{2 d^2}+\frac {b e n x^{3/2} \left (a+b \log \left (c \left (d+\frac {e}{\sqrt {x}}\right )^n\right )\right )}{3 d}+\frac {1}{2} x^2 \left (a+b \log \left (c \left (d+\frac {e}{\sqrt {x}}\right )^n\right )\right )^2-\frac {\left (b e^2 n\right ) \text {Subst}\left (\int \frac {a+b \log \left (c x^n\right )}{\left (-\frac {d}{e}+\frac {x}{e}\right )^2} \, dx,x,d+\frac {e}{\sqrt {x}}\right )}{d^3}+\frac {\left (b e^3 n\right ) \text {Subst}\left (\int \frac {a+b \log \left (c x^n\right )}{x \left (-\frac {d}{e}+\frac {x}{e}\right )} \, dx,x,d+\frac {e}{\sqrt {x}}\right )}{d^3}-\frac {\left (b^2 e n^2\right ) \text {Subst}\left (\int \left (-\frac {e^3}{d (d-x)^3}-\frac {e^3}{d^2 (d-x)^2}-\frac {e^3}{d^3 (d-x)}-\frac {e^3}{d^3 x}\right ) \, dx,x,d+\frac {e}{\sqrt {x}}\right )}{3 d}+\frac {\left (b^2 e^2 n^2\right ) \text {Subst}\left (\int \frac {1}{x \left (-\frac {d}{e}+\frac {x}{e}\right )^2} \, dx,x,d+\frac {e}{\sqrt {x}}\right )}{2 d^2} \\ & = -\frac {b^2 e^3 n^2 \sqrt {x}}{3 d^3}+\frac {b^2 e^2 n^2 x}{6 d^2}+\frac {b^2 e^4 n^2 \log \left (d+\frac {e}{\sqrt {x}}\right )}{3 d^4}+\frac {b e^3 n \left (d+\frac {e}{\sqrt {x}}\right ) \sqrt {x} \left (a+b \log \left (c \left (d+\frac {e}{\sqrt {x}}\right )^n\right )\right )}{d^4}-\frac {b e^2 n x \left (a+b \log \left (c \left (d+\frac {e}{\sqrt {x}}\right )^n\right )\right )}{2 d^2}+\frac {b e n x^{3/2} \left (a+b \log \left (c \left (d+\frac {e}{\sqrt {x}}\right )^n\right )\right )}{3 d}+\frac {b e^4 n \log \left (1-\frac {d}{d+\frac {e}{\sqrt {x}}}\right ) \left (a+b \log \left (c \left (d+\frac {e}{\sqrt {x}}\right )^n\right )\right )}{d^4}+\frac {1}{2} x^2 \left (a+b \log \left (c \left (d+\frac {e}{\sqrt {x}}\right )^n\right )\right )^2+\frac {b^2 e^4 n^2 \log (x)}{6 d^4}+\frac {\left (b^2 e^2 n^2\right ) \text {Subst}\left (\int \left (\frac {e^2}{d (d-x)^2}+\frac {e^2}{d^2 (d-x)}+\frac {e^2}{d^2 x}\right ) \, dx,x,d+\frac {e}{\sqrt {x}}\right )}{2 d^2}-\frac {\left (b^2 e^3 n^2\right ) \text {Subst}\left (\int \frac {1}{-\frac {d}{e}+\frac {x}{e}} \, dx,x,d+\frac {e}{\sqrt {x}}\right )}{d^4}-\frac {\left (b^2 e^4 n^2\right ) \text {Subst}\left (\int \frac {\log \left (1-\frac {d}{x}\right )}{x} \, dx,x,d+\frac {e}{\sqrt {x}}\right )}{d^4} \\ & = -\frac {5 b^2 e^3 n^2 \sqrt {x}}{6 d^3}+\frac {b^2 e^2 n^2 x}{6 d^2}+\frac {5 b^2 e^4 n^2 \log \left (d+\frac {e}{\sqrt {x}}\right )}{6 d^4}+\frac {b e^3 n \left (d+\frac {e}{\sqrt {x}}\right ) \sqrt {x} \left (a+b \log \left (c \left (d+\frac {e}{\sqrt {x}}\right )^n\right )\right )}{d^4}-\frac {b e^2 n x \left (a+b \log \left (c \left (d+\frac {e}{\sqrt {x}}\right )^n\right )\right )}{2 d^2}+\frac {b e n x^{3/2} \left (a+b \log \left (c \left (d+\frac {e}{\sqrt {x}}\right )^n\right )\right )}{3 d}+\frac {b e^4 n \log \left (1-\frac {d}{d+\frac {e}{\sqrt {x}}}\right ) \left (a+b \log \left (c \left (d+\frac {e}{\sqrt {x}}\right )^n\right )\right )}{d^4}+\frac {1}{2} x^2 \left (a+b \log \left (c \left (d+\frac {e}{\sqrt {x}}\right )^n\right )\right )^2+\frac {11 b^2 e^4 n^2 \log (x)}{12 d^4}-\frac {b^2 e^4 n^2 \text {Li}_2\left (\frac {d}{d+\frac {e}{\sqrt {x}}}\right )}{d^4} \\ \end{align*}
Time = 0.15 (sec) , antiderivative size = 321, normalized size of antiderivative = 1.11 \[ \int x \left (a+b \log \left (c \left (d+\frac {e}{\sqrt {x}}\right )^n\right )\right )^2 \, dx=\frac {1}{6} \left (3 x^2 \left (a+b \log \left (c \left (d+\frac {e}{\sqrt {x}}\right )^n\right )\right )^2+\frac {b e n \left (6 a d e^2 \sqrt {x}-5 b d e^2 n \sqrt {x}-3 a d^2 e x+b d^2 e n x+2 a d^3 x^{3/2}+8 b e^3 n \log \left (d+\frac {e}{\sqrt {x}}\right )+6 b d e^2 \sqrt {x} \log \left (c \left (d+\frac {e}{\sqrt {x}}\right )^n\right )-3 b d^2 e x \log \left (c \left (d+\frac {e}{\sqrt {x}}\right )^n\right )+2 b d^3 x^{3/2} \log \left (c \left (d+\frac {e}{\sqrt {x}}\right )^n\right )-6 a e^3 \log \left (e+d \sqrt {x}\right )+3 b e^3 n \log \left (e+d \sqrt {x}\right )-6 b e^3 \log \left (c \left (d+\frac {e}{\sqrt {x}}\right )^n\right ) \log \left (e+d \sqrt {x}\right )+3 b e^3 n \log ^2\left (e+d \sqrt {x}\right )-6 b e^3 n \log \left (e+d \sqrt {x}\right ) \log \left (-\frac {d \sqrt {x}}{e}\right )+4 b e^3 n \log (x)-6 b e^3 n \operatorname {PolyLog}\left (2,1+\frac {d \sqrt {x}}{e}\right )\right )}{d^4}\right ) \]
[In]
[Out]
\[\int x {\left (a +b \ln \left (c \left (d +\frac {e}{\sqrt {x}}\right )^{n}\right )\right )}^{2}d x\]
[In]
[Out]
\[ \int x \left (a+b \log \left (c \left (d+\frac {e}{\sqrt {x}}\right )^n\right )\right )^2 \, dx=\int { {\left (b \log \left (c {\left (d + \frac {e}{\sqrt {x}}\right )}^{n}\right ) + a\right )}^{2} x \,d x } \]
[In]
[Out]
\[ \int x \left (a+b \log \left (c \left (d+\frac {e}{\sqrt {x}}\right )^n\right )\right )^2 \, dx=\int x \left (a + b \log {\left (c \left (d + \frac {e}{\sqrt {x}}\right )^{n} \right )}\right )^{2}\, dx \]
[In]
[Out]
\[ \int x \left (a+b \log \left (c \left (d+\frac {e}{\sqrt {x}}\right )^n\right )\right )^2 \, dx=\int { {\left (b \log \left (c {\left (d + \frac {e}{\sqrt {x}}\right )}^{n}\right ) + a\right )}^{2} x \,d x } \]
[In]
[Out]
\[ \int x \left (a+b \log \left (c \left (d+\frac {e}{\sqrt {x}}\right )^n\right )\right )^2 \, dx=\int { {\left (b \log \left (c {\left (d + \frac {e}{\sqrt {x}}\right )}^{n}\right ) + a\right )}^{2} x \,d x } \]
[In]
[Out]
Timed out. \[ \int x \left (a+b \log \left (c \left (d+\frac {e}{\sqrt {x}}\right )^n\right )\right )^2 \, dx=\int x\,{\left (a+b\,\ln \left (c\,{\left (d+\frac {e}{\sqrt {x}}\right )}^n\right )\right )}^2 \,d x \]
[In]
[Out]